home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / Draw / CScreen_Main.as < prev    next >
Text File  |  2011-08-19  |  3KB  |  108 lines

  1. package Local.Draw
  2. {
  3.    import Local.External.CURL;
  4.    import flash.display.MovieClip;
  5.    import flash.events.Event;
  6.    
  7.    public class CScreen_Main extends CScreen
  8.    {
  9.        
  10.       
  11.       public var mcButtonCredits:MovieClip;
  12.       
  13.       public var mcBackground:MovieClip;
  14.       
  15.       public var mcLogo:MovieClip;
  16.       
  17.       public var mcMoreGames:MovieClip;
  18.       
  19.       public var mcButtonGameGuide:MovieClip;
  20.       
  21.       public var mcSize:MovieClip;
  22.       
  23.       public var mcButtonTrailer:MovieClip;
  24.       
  25.       private var mCreditsWindow:CWindow_Credits;
  26.       
  27.       public var mcButtonPlay:MovieClip;
  28.       
  29.       public function CScreen_Main()
  30.       {
  31.          if(true)
  32.          {
  33.             super();
  34.             if(true)
  35.             {
  36.                AddButton("play",new CScreenButton(mcButtonPlay,Button_Default)).addEventListener(CScreenButton.MOUSECLICK,e_PLAY);
  37.                if(true)
  38.                {
  39.                   AddButton("gameguide",new CScreenButton(mcButtonGameGuide,Button_Default)).addEventListener(CScreenButton.MOUSECLICK,e_GAMEGUIDE);
  40.                   if(true)
  41.                   {
  42.                      AddButton("trailer",new CScreenButton(mcButtonTrailer,Button_Default)).addEventListener(CScreenButton.MOUSECLICK,e_TRAILER);
  43.                   }
  44.                   AddButton("credits",new CScreenButton(mcButtonCredits,Button_Default)).addEventListener(CScreenButton.MOUSECLICK,e_CREDITS);
  45.                }
  46.                AddLogoButton();
  47.             }
  48.             AddMoreGamesButton("Main");
  49.          }
  50.       }
  51.       
  52.       private function e_WINDOW_DISPOSING(param1:Event = null) : void
  53.       {
  54.          mCreditsWindow = null;
  55.       }
  56.       
  57.       private function e_TRAILER(param1:Event = null) : void
  58.       {
  59.          CURL.Trailer();
  60.       }
  61.       
  62.       override public function Process() : void
  63.       {
  64.          if(true)
  65.          {
  66.             super.Process();
  67.             if(true)
  68.             {
  69.                ┬º┬ºpush(mCreditsWindow);
  70.                if(true)
  71.                {
  72.                   ┬º┬ºgoto(addr21);
  73.                }
  74.                ┬º┬ºpop().Update();
  75.                ┬º┬ºgoto(addr21);
  76.             }
  77.             ┬º┬ºgoto(addr19);
  78.          }
  79.          addr21:
  80.          if(┬º┬ºpop())
  81.          {
  82.             addr19:
  83.             ┬º┬ºpush(mCreditsWindow);
  84.          }
  85.       }
  86.       
  87.       private function e_CREDITS(param1:Event = null) : void
  88.       {
  89.          var _loc2_:CScreenButton = null;
  90.          _loc2_ = CScreenButton(param1.currentTarget);
  91.          addChild(mCreditsWindow = new CWindow_Credits(stage));
  92.          mCreditsWindow.addEventListener(CWindow.DISPOSING,e_WINDOW_DISPOSING);
  93.       }
  94.       
  95.       private function e_PLAY(param1:Event = null) : void
  96.       {
  97.          var _loc2_:CScreenButton = null;
  98.          _loc2_ = CScreenButton(param1.currentTarget);
  99.          mParent.GetScreen("selectlevel").Activate();
  100.       }
  101.       
  102.       private function e_GAMEGUIDE(param1:Event = null) : void
  103.       {
  104.          CURL.GameGuide();
  105.       }
  106.    }
  107. }
  108.